<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Shop extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    //首页
    public function index()
    {
        //首页轮播图
        $head_ad_list = db("article")->where("category_id", 11)->select();

        $this->assign("title","商城");
        $this->assign("foot_nav_index", "2"); 
        $this->assign("head_ad_list", $head_ad_list); 
        return $this->view->fetch();
    }
}
